/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"60274816-7C3A-42A6-95E1-EDAF7E99E03A"}
 */
var fEstilo = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"52E4A170-6C5F-42D8-B94B-19287B091297",variableType:4}
 */
var fAnio = null;

/**
 * @type {Date}
 *
 * @properties={typeid:35,uuid:"0FD891DC-5A6C-4CDB-9583-E2266D5654AB",variableType:93}
 */
var fFechaHasta = null;

/**
 * @type {Date}
 *
 * @properties={typeid:35,uuid:"E3CC0144-BE38-497B-8B0F-EEFC6F020864",variableType:93}
 */
var fFechaDesde = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"222C2157-7547-477F-8334-6514497772F9",variableType:8}
 */
var fMes = null;

/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"26AD2029-BADD-4E0A-AA02-7BEF0AB1E3B6"}
 */
var fTipo = null

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"2541AE53-EEFF-47C0-8C13-1C9152C942EF"}
 */
function mesSiguiente(event) {
	elements.tab_calendar.removeAllTabs()
	var $mes = forms.calendario.fMes + 1
	var $anio = forms.calendario.fAnio
	if ($mes == 13)
	{
		$mes = 1
		$anio++
	}
	globals.mostrarCalendarioMes($mes,$anio, forms.calendario.fFechaDesde, forms.calendario.fFechaHasta, forms.calendario.fTipo, null, forms.calendario.fEstilo)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"9E0EE07E-9ABE-4916-98D7-0B3FEE634483"}
 */
function mesAnterior(event) {
	elements.tab_calendar.removeAllTabs()
	var $mes = forms.calendario.fMes -1
	var $anio = forms.calendario.fAnio
	if ($mes == 0)
	{
		$mes = 12
		$anio--
	}
	globals.mostrarCalendarioMes($mes,$anio, forms.calendario.fFechaDesde, forms.calendario.fFechaHasta, forms.calendario.fTipo, null, forms.calendario.fEstilo)
}

/**
 * Handle changed data.
 *
 * @param {Number} oldValue old value
 * @param {Number} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"890B2ED1-6393-4F85-8DFB-5DFEABF31C46"}
 */
function onDataChange(oldValue, newValue, event) {
	elements.tab_calendar.removeAllTabs()
	globals.mostrarCalendarioMes(forms.calendario.fMes,forms.calendario.fAnio, forms.calendario.fFechaDesde, forms.calendario.fFechaHasta, forms.calendario.fTipo, null, forms.calendario.fEstilo)
	return true
}
